gloss_pop(item 2 of obj_key, the left of pop_rect, the top of pop_rect)
set vid_delay = FALSE
exit
end if
-- do popup for video
if item 1 of obj_key = "vid" then
wrapwin(item 2 of obj_key)
puppetsprite 26,true
set the visible of sprite 26 = true
set vidcast = "vid_"&item 2 of obj_key
switchqt 26, the number of cast vidcast
patchpal
set bit_rect = the rect of sprite 25
spriteBox 26, the left of bit_rect + 21, the top of bit_rect + 20,the left of bit_rect + the width of member "bi_dummy" + 21,the top of bit_rect + the height of member "bi_dummy" +20
puppettempo 30
continue
updatestage
-- **** beginning of view in context code: line 17 used to keep track of context **** --
-- set x = "prp_"&item 2 of obj_key
-- put the framelabel into line 17 of field x
exit
end if
-- do text subwin
if item 1 of obj_key = "txt" then
see_sprite([26,43],false)
wrapwin("sub_text","text")
set bit_rect = getaprop(pop_locs,"sub_text")
puppetsprite 38,true
set tfield = "txt_"&item 2 of obj_key
put the text of field tfield into field "sub_win text II"
set the castnum of sprite 38 = cast "sub_win text II"
spriteBox 38, the right of bit_rect - 212, the top of bit_rect + 18, the right of bit_rect, the bottom of bit_rect
set the rect of cast "sub_win text II" = rect(0,0,187,((the bottom of bit_rect - 28) - (the top of bit_rect + 18)))
if the ink of sprite 38 <> 36 then set the ink of sprite 38 = 36
set the visible of sprite 38 = true
puppetsprite 40,true
puppetsprite 41,true
set the_center = (the right of bit_rect - the left of bit_rect) / 2
spritebox 40, the left of bit_rect + the_center - 25, the bottom of bit_rect - 23,the left of bit_rect + the_center - 25 + the width of sprite 40, the bottom of bit_rect - 23 + the height of sprite 40
spritebox 41, the left of bit_rect + the_center + 5, the bottom of bit_rect - 23, the left of bit_rect + the_center + 5 + the width of sprite 41, the bottom of bit_rect - 23 + the height of sprite 41
see_sprite([40,41],true)
see_sprite([26,43],false)
set vid_delay = FALSE
-- view in context code : preliminary --
-- set x = "prp_"&item 2 of obj_key
-- put the framelabel into line 17 of field x
continue
exit
end if
-- do popup for audio
if the casttype of cast obj_key = #bitmap then
unload
wrapwin(obj_key)
put "snd_"&obj_key into cname
switchqt 26, the number of cast cname
set the visible of sprite 26 = true
set the volume of sprite 26 = 255
set the pausedAtStart of cast cname = true
continue
puppettempo 30
updatestage
if the ink of sprite 38 = 36 then set the ink of sprite 38 = 0
exit
end if
if item 1 of obj_key = "msub" then
set_puppets([26],true)
set the visible of sprite 26 = true
set psp = the rect of sprite 35
set prew = the rect of sprite 43
set psptop = getprop(pop_locs, item 2 of obj_key)
spriteBox 35, the left of psp, psptop, the right of psp, psptop + the height of sprite 35
spriteBox 43, the left of prew, psptop, the right of prew, psptop + the height of sprite 43
set b_sub_key = item 2 of obj_key
if the visible of sprite 38 = TRUE then fillbox(b_sub_key)
subaudio("snd_"&item 2 of obj_key)
updatestage
end if
end
on dumpcast start, end, cl
set var = ""
repeat with x = start to end
put the name of member x of castlib cl & return after var
end repeat
-- put var
end
on vid_on
set iss_vid = 1
end
on setqt mcast
global mp, gsep
put mcast&".mov" into fname
set p to mp&"moovs"&gsep
set mcast to "vid_"&mcast
set the filename of member mcast of castlib "shared" to p&fname
updatestage
end
on findcw pm
vid_on
set qtrep_return = string(current_pm)&"issw"
set tomark = string(current_pm)&",CWv"
pause
if pm < 10 then
setqt("0"&string(pm)&"CWV")
else
setqt(string(pm)&"CWV")
end if
preload frame marker(tomark)
go to frame marker(tomark)
continue
set the controller of cast the castnum of sprite 22 to false
handcurse the clickon
qtstart 22
qt_wait 22, tomark
bail 22
end
on findnu pm
vid_on
set qtrep_return = string(current_pm)&"issw"
set tomark = string(current_pm)&",NUv"
pause
if pm < 10 then
setqt("0"&string(pm)&"NUV")
else
setqt(string(pm)&"NUV")
end if
preload frame marker(tomark)
go to frame marker(tomark)
continue
set the controller of cast the castnum of sprite 22 to false
handcurse the clickon
qtstart 22
qt_wait 22, tomark
bail 22
end
on findnb pm
vid_on
set qtrep_return = string(current_pm)&"issw"
set tomark = string(pm)&",NBv"
pause
if pm < 10 then
setqt("0"&string(pm)&"NBV")
else
setqt(string(pm)&"NBV")
end if
preload frame marker(tomark)
go to frame marker(tomark)
continue
set the controller of cast the castnum of sprite 22 to false